package com.company.huisuo.biz.dialog

import android.app.Activity
import android.view.LayoutInflater
import com.company.huisuo.base.BaseBlurDialog
import com.company.huisuo.databinding.DialogCartStatsBinding


class CartStatsDialog(
    activity: Activity,
    private val click: () -> Unit
) : BaseBlurDialog<DialogCartStatsBinding>(activity) {
    override fun getViewBinding(): DialogCartStatsBinding {
        return DialogCartStatsBinding.inflate(LayoutInflater.from(context))
    }

    override fun initView() {
        mBinding.tvOk.setOnClickListener {
            click.invoke()
            dismiss()
        }
    }
}